package Level01_one;
public class Animal {
    private String name;
    private String color;

    void eat(){
        System.out.println("白色的 Tom 动物在吃东西");
    }

    public Animal(String name, String color) {
        this.name = name;
        this.color = color;
    }
    public Animal(){}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
